package edu.suda.xsap.dto.convert;

import edu.suda.xsap.dto.MemberBindRecordDto;
import edu.suda.xsap.entity.MemberBindRecord;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")

public interface MemberBindRecordConvert {
    @Mapping(source="id", target = "id")
    @Mapping(source="memberId", target = "memberId")
    @Mapping(source="cardId", target = "cardId")
    @Mapping(source="validCount", target = "validCount")
    @Mapping(source="validDay", target = "validDay")
    @Mapping(source="note", target = "note")
    @Mapping(source="activeStatus", target = "activeStatus")
    MemberBindRecordDto toDto(MemberBindRecord memberBindRecord) ;
    List<MemberBindRecordDto> toDtoList(List<MemberBindRecord> memberBindRecords) ;
}
